package com.neusmart.common.util;

import android.text.TextUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ZipCodeUtil {

    public static boolean isValidZipCode(String zipCode) {
        if (TextUtils.isEmpty(zipCode))
            return false;
        Pattern p = Pattern.compile("^\\d{6}$");
        Matcher m = p.matcher(zipCode);
        return m.matches();
    }

}
